<!--
 * @FilePath: /vite5-vue3-tailwindcss3-naive2/src/App.vue
 * @Descripttion: 
 * @version: 1.0.0
 * @Author: lijinshen
 * @Date: 2024-05-09 10:34:48
 * @LastEditors: lijinshen
 * @LastEditTime: 2024-05-09 10:47:26
-->

<script setup>
import { themeOverrides } from '@/naiveUI'
import { useUser } from '@/stores/user'

const userStore = useUser()
</script>

<template>
  <n-config-provider preflight-style-disabled :theme-overrides="themeOverrides">
    <div>
      <div>
        <n-button type="tertiary" @click="userStore.add"> +1 </n-button>
        ---{{ userStore.mount }}--
        <n-button type="primary" @click="userStore.sub"> -1 </n-button>
        <div></div>
        <router-link to="/">index</router-link>
        <div></div>
        <router-link to="/home">home</router-link>
      </div>
      <router-view></router-view>
    </div>
  </n-config-provider>
</template>
<style scoped></style>
